diff options
| author | Adam Soltys <[email protected]> | 2023-11-08 13:46:04 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-11-11 00:04:22 -0800 |
| commit | 8041f705373758940b9487ed5c4cd34bfb04ac16 (patch) | |
| tree | a96ded4f227e157762d446e8d946a94cae861b0d /src/routes/(app)/[username]/card | |
| parent | 84022507dd5d5a03aedb986f0ff28c81a3bcaeec (diff) | |
| download | coinos-ui-8041f705373758940b9487ed5c4cd34bfb04ac16.tar.gz coinos-ui-8041f705373758940b9487ed5c4cd34bfb04ac16.zip | |
rename pot to fund
Diffstat (limited to 'src/routes/(app)/[username]/card')
| -rw-r--r-- | src/routes/(app)/[username]/card/[serial]/+page.server.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/[username]/card/[serial]/+page.server.js b/src/routes/(app)/[username]/card/[serial]/+page.server.js index e2569536..40e375aa 100644 --- a/src/routes/(app)/[username]/card/[serial]/+page.server.js +++ b/src/routes/(app)/[username]/card/[serial]/+page.server.js @@ -3,14 +3,14 @@ import { redirect } from "@sveltejs/kit" export let load = async ({ cookies, params }) => { let { serial } = params; - let pot; + let fund; try { - pot = await get(`/pot/${serial}`, auth(cookies)); + fund = await get(`/fund/${serial}`, auth(cookies)); } catch (e) { console.log(e); } - if (pot) throw redirect(307, `/pot/${serial}`); + if (fund) throw redirect(307, `/fund/${serial}`); return params; }; |
